﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGeVector3d : IDisposable
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGeVector3d(IntPtr cPtr, bool cMemoryOwn)
		{
			this.swigCMemOwn = cMemoryOwn;
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGeVector3d obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGeVector3d()
		{
			this.Dispose();
		}

		public virtual void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGeVector3d(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
		}

		public static OdGeVector3d operator *(OdGeVector3d v, double d)
		{
			return v.Mul(d);
		}

		public static OdGeVector3d operator -(OdGeVector3d v, OdGeVector3d d)
		{
			return v.Sub(d);
		}

		public static OdGeVector3d operator +(OdGeVector3d v, OdGeVector3d d)
		{
			return v.Add(d);
		}

		public static OdGeVector3d operator -(OdGeVector3d v)
		{
			return v.Sub();
		}

		public static OdGeVector3d operator /(OdGeVector3d v, double scale)
		{
			return v.Div(scale);
		}

		public override string ToString()
		{
			if (this.swigCPtr.Handle == IntPtr.Zero)
			{
				return "Empty";
			}
			return string.Format("({0},{1},{2})", this.x, this.y, this.z);
		}

		public OdGeVector3d() : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_0(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeVector3d(OdGeVector3d source) : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_1(OdGeVector3d.getCPtr(source)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeVector3d(double xx, double yy, double zz) : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_2(xx, yy, zz), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeVector3d(OdGePlanarEnt plane, OdGeVector2d vector2d) : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_3(OdGePlanarEnt.getCPtr(plane), OdGeVector2d.getCPtr(vector2d)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGeVector3d Assign(OdGeVector3d vect)
		{
			GlobalsPINVOKE.OdGeVector3d_Assign(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public static OdGeVector3d kIdentity
		{
			get
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGeVector3d_kIdentity_get();
				OdGeVector3d result = (intPtr == IntPtr.Zero) ? null : new OdGeVector3d(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static OdGeVector3d kXAxis
		{
			get
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGeVector3d_kXAxis_get();
				OdGeVector3d result = (intPtr == IntPtr.Zero) ? null : new OdGeVector3d(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static OdGeVector3d kYAxis
		{
			get
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGeVector3d_kYAxis_get();
				OdGeVector3d result = (intPtr == IntPtr.Zero) ? null : new OdGeVector3d(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public static OdGeVector3d kZAxis
		{
			get
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGeVector3d_kZAxis_get();
				OdGeVector3d result = (intPtr == IntPtr.Zero) ? null : new OdGeVector3d(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
		}

		public OdGeVector3d setToProduct(OdGeMatrix3d matrix, OdGeVector3d vect)
		{
			GlobalsPINVOKE.OdGeVector3d_setToProduct__SWIG_0(this.swigCPtr, OdGeMatrix3d.getCPtr(matrix), OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d setToProduct(OdGeVector3d vect, double scale)
		{
			GlobalsPINVOKE.OdGeVector3d_setToProduct__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect), scale);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d transformBy(OdGeMatrix3d xfm)
		{
			GlobalsPINVOKE.OdGeVector3d_transformBy(this.swigCPtr, OdGeMatrix3d.getCPtr(xfm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d rotateBy(double angle, OdGeVector3d axis)
		{
			GlobalsPINVOKE.OdGeVector3d_rotateBy(this.swigCPtr, angle, OdGeVector3d.getCPtr(axis));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d mirror(OdGeVector3d normalToPlane)
		{
			GlobalsPINVOKE.OdGeVector3d_mirror(this.swigCPtr, OdGeVector3d.getCPtr(normalToPlane));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector2d convert2d(OdGePlanarEnt plane)
		{
			OdGeVector2d result = new OdGeVector2d(GlobalsPINVOKE.OdGeVector3d_convert2d__SWIG_0(this.swigCPtr, OdGePlanarEnt.getCPtr(plane)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector2d convert2d()
		{
			OdGeVector2d result = new OdGeVector2d(GlobalsPINVOKE.OdGeVector3d_convert2d__SWIG_1(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d Mul(double scale)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Mul__SWIG_0(this.swigCPtr, scale), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d Div(double scale)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Div__SWIG_0(this.swigCPtr, scale), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d Add(OdGeVector3d vect)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Add__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d Sub(OdGeVector3d vect)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Sub__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d setToSum(OdGeVector3d vector1, OdGeVector3d vector2)
		{
			GlobalsPINVOKE.OdGeVector3d_setToSum(this.swigCPtr, OdGeVector3d.getCPtr(vector1), OdGeVector3d.getCPtr(vector2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d Sub()
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Sub__SWIG_2(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d negate()
		{
			GlobalsPINVOKE.OdGeVector3d_negate(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d perpVector()
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_perpVector(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double angleTo(OdGeVector3d vect)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_angleTo__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double angleTo(OdGeVector3d vect, OdGeVector3d refVector)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_angleTo__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeVector3d.getCPtr(refVector));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double angleOnPlane(OdGePlanarEnt plane)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_angleOnPlane(this.swigCPtr, OdGePlanarEnt.getCPtr(plane));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d normal(OdGeTol tol)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_normal__SWIG_0(this.swigCPtr, OdGeTol.getCPtr(tol)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d normal()
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_normal__SWIG_1(this.swigCPtr), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d normalize(OdGeTol tol)
		{
			GlobalsPINVOKE.OdGeVector3d_normalize__SWIG_0(this.swigCPtr, OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d normalize()
		{
			GlobalsPINVOKE.OdGeVector3d_normalize__SWIG_1(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d normalize(OdGeTol tol, out OdGe.ErrorCondition status)
		{
			GlobalsPINVOKE.OdGeVector3d_normalize__SWIG_2(this.swigCPtr, OdGeTol.getCPtr(tol), out status);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public double normalizeGetLength(double tol)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_normalizeGetLength__SWIG_0(this.swigCPtr, tol);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double normalizeGetLength()
		{
			double result = GlobalsPINVOKE.OdGeVector3d_normalizeGetLength__SWIG_1(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double length()
		{
			double result = GlobalsPINVOKE.OdGeVector3d_length(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double lengthSqrd()
		{
			double result = GlobalsPINVOKE.OdGeVector3d_lengthSqrd(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isUnitLength(OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isUnitLength__SWIG_0(this.swigCPtr, OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isUnitLength()
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isUnitLength__SWIG_1(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isZeroLength(OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isZeroLength__SWIG_0(this.swigCPtr, OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isZeroLength()
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isZeroLength__SWIG_1(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isParallelTo(OdGeVector3d vect, OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isParallelTo__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isParallelTo(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isParallelTo__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isParallelTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isParallelTo__SWIG_2(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol), out status);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isCodirectionalTo(OdGeVector3d vect, OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isCodirectionalTo__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isCodirectionalTo(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isCodirectionalTo__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isCodirectionalTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isCodirectionalTo__SWIG_2(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol), out status);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isPerpendicularTo(OdGeVector3d vect, OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isPerpendicularTo__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isPerpendicularTo(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isPerpendicularTo__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isPerpendicularTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isPerpendicularTo__SWIG_2(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol), out status);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double dotProduct(OdGeVector3d vect)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_dotProduct(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d crossProduct(OdGeVector3d vect)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_crossProduct(this.swigCPtr, OdGeVector3d.getCPtr(vect)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d orthoProject(OdGeVector3d planeNormal)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_orthoProject__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(planeNormal)), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d orthoProject(OdGeVector3d planeNormal, OdGeTol tol, out OdGe.ErrorCondition flag)
		{
			OdGeVector3d result = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_orthoProject__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(planeNormal), OdGeTol.getCPtr(tol), out flag), true);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsEqual(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_IsEqual(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsNotEqual(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_IsNotEqual(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isEqualTo(OdGeVector3d vect, OdGeTol tol)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isEqualTo__SWIG_0(this.swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isEqualTo(OdGeVector3d vect)
		{
			bool result = GlobalsPINVOKE.OdGeVector3d_isEqualTo__SWIG_1(this.swigCPtr, OdGeVector3d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public double GetItem(uint i)
		{
			double result = GlobalsPINVOKE.OdGeVector3d_GetItem__SWIG_0(this.swigCPtr, i);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public uint largestElement()
		{
			uint result = GlobalsPINVOKE.OdGeVector3d_largestElement(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGeVector3d set(double xx, double yy, double zz)
		{
			GlobalsPINVOKE.OdGeVector3d_set__SWIG_0(this.swigCPtr, xx, yy, zz);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public OdGeVector3d set(OdGePlanarEnt plane, OdGeVector2d vect)
		{
			GlobalsPINVOKE.OdGeVector3d_set__SWIG_1(this.swigCPtr, OdGePlanarEnt.getCPtr(plane), OdGeVector2d.getCPtr(vect));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return new OdGeVector3d(this);
		}

		public double x
		{
			get
			{
				double result = GlobalsPINVOKE.OdGeVector3d_x_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdGeVector3d_x_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public double y
		{
			get
			{
				double result = GlobalsPINVOKE.OdGeVector3d_y_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdGeVector3d_y_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public double z
		{
			get
			{
				double result = GlobalsPINVOKE.OdGeVector3d_z_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdGeVector3d_z_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		protected bool swigCMemOwn;
	}
}
